<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/css/admin/admin_manage.css" />
    <link href="__PUBLIC__/css/table_form.css" rel="stylesheet" type="text/css" />
    <script src='__PUBLIC__/assets/js/jquery.js'></script>
    <script language="javascript" type="text/javascript" src="__PUBLIC__/js/formvalidator.js" charset="UTF-8"></script>
    <script language="javascript" type="text/javascript" src="__PUBLIC__/js/formvalidatorregex.js" charset="UTF-8"></script>
    <script type="text/javascript">
        window.focus();
        var pc_hash = 'm6QKB4';
        window.onload = function(){
            var html_a = document.getElementsByTagName('a');
            var num = html_a.length;
            for(var i=0;i<num;i++) {
                var href = html_a[i].href;
                if(href && href.indexOf('javascript:') == -1) {
                    if(href.indexOf('?') != -1) {
                        html_a[i].href = href+'&pc_hash='+pc_hash;
                    } else {
                        html_a[i].href = href+'?pc_hash='+pc_hash;
                    }
                }
            }

            var html_form = document.forms;
            var num = html_form.length;
            for(var i=0;i<num;i++) {
                var newNode = document.createElement("input");
                newNode.name = 'pc_hash';
                newNode.type = 'hidden';
                newNode.value = pc_hash;
                html_form[i].appendChild(newNode);
            }
        }
    </script>
    <script type="text/javascript">
        $(function(){
            $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
            $("#rolename").formValidator({onshow:"请输入角色名称",onfocus:"角色名称不能为空。"}).inputValidator({min:1,max:999,onerror:"角色名称不能为空。"});
        });
    </script>


</head>
<body>
<div class="top-div">
    <a class="" href="__URL__/index">管理员管理</a>
    <a class="cur_pa" href="__URL__/add">新增管理员</a>
</div>
<div class="common-form">
    <form name="myform" action="__URL__/add_role" method="post" id="myform">
        <table width="100%" class="table_form contentWrap">
            <tr>
                <td>角色名称</td>
                <td><input type="text" name="name" value="" class="input-text" id="rolename"></input></td>
            </tr>
            <tr>
                <td>角色描述</td>
                <td><textarea name="comment" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:500px;"></textarea></td>
            </tr>
            <tr>
                <td>是否启用</td>
                <td><input type="radio" name="status" value="1" checked> 启用  <label><input type="radio" name="status" value="0">禁止</td>
            </tr>
            <tr>
                <td>排序</td>
                <td><input type="text" name="sort" size="3" class="input-text"></td>
            </tr>
        </table>

        <div class="bk15"></div>
        <input name="dosubmit" type="submit" value="提交" class="button">
    </form>
</div>

</body>
</html>